package com.crosbymichael.os
{
	import flash.system.Capabilities;

	/**
	 * Returns the current operationg system that the air application is running on.
	 *  
	 * @author Michael Crosby crosbymichael.com
	 * 
	 */	
	public class GetOperatingSystem
	{
		public function GetOperatingSystem()
		{
		}
		
		/**
		 * Get's the os of the computer that the app is running on.
		 *  
		 * @return Returns the first 3 chars of the os name in lower case. 
		 * 
		 */		
		public static function getOS():String {
			return Capabilities.os.toLowerCase().slice(0, 2);
		}
	}
}